x = 2
y = 3
print('x={:.2f},y={}'.format(x,y))
print('x=%.2f,y=%d'% (x,y))
print('-----------------------------')

print('{0}和{1}都是好孩子'.format('luca','ike'))
print('{}和{}都是好孩子'.format('luca','ike'))
print('-----------------------------')

book = ['python',50.0]
address = ['广东','广州']
print('书名：{0[0]},单价:{0[1]},地点:{1[0]}省{1[1]}市'.format(book,address))
print('-----------------------------')

a = 5.5
b = 4
c = 5.5
print(a//b)#整除
print(a%b)#求余
print(a**b)#幂运算
print('-----------------------------')
print(a==b)
print(a!=b)
print('-----------------------------')
a += b #相当于a=a+b
print(a)
print('-----------------------------')
print(int(a))
print(float(b))
print('-----------------------------')

x = input('请输入数值：')
print(x)
print('-----------------------------')
